home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / content / nsIXTFElementWrapper.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  148 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIXTFElementWrapper.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIXTFElementWrapper_h__
  6. #define __gen_nsIXTFElementWrapper_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIAtom; /* forward declaration */
  18.  
  19. class nsIDOMElement; /* forward declaration */
  20.  
  21. class nsIDOMDocument; /* forward declaration */
  22.  
  23.  
  24. /* starting interface:    nsIXTFElementWrapper */
  25. #define NS_IXTFELEMENTWRAPPER_IID_STR "444d0276-3302-4d35-a74e-25c4e9c483c9"
  26.  
  27. #define NS_IXTFELEMENTWRAPPER_IID \
  28.   {0x444d0276, 0x3302, 0x4d35, \
  29.     { 0xa7, 0x4e, 0x25, 0xc4, 0xe9, 0xc4, 0x83, 0xc9 }}
  30.  
  31. class NS_NO_VTABLE nsIXTFElementWrapper : public nsISupports {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IXTFELEMENTWRAPPER_IID)
  35.  
  36.   /* readonly attribute nsIDOMElement elementNode; */
  37.   NS_IMETHOD GetElementNode(nsIDOMElement * *aElementNode) = 0;
  38.  
  39.   /* readonly attribute nsIDOMElement documentFrameElement; */
  40.   NS_IMETHOD GetDocumentFrameElement(nsIDOMElement * *aDocumentFrameElement) = 0;
  41.  
  42.   /**
  43.    * Events can be unmasked by setting the corresponding bit as given
  44.    * by the NOTIFY_* constants in nsIXTFElement and nsIXTFVisual:
  45.    */
  46.   /* attribute unsigned long notificationMask; */
  47.   NS_IMETHOD GetNotificationMask(PRUint32 *aNotificationMask) = 0;
  48.   NS_IMETHOD SetNotificationMask(PRUint32 aNotificationMask) = 0;
  49.  
  50.   /**
  51.    * Sets the intrinsic state for the element.
  52.    * @see nsIContent::IntrinsicState().
  53.    */
  54.   /* void setIntrinsicState (in long newState); */
  55.   NS_IMETHOD SetIntrinsicState(PRInt32 newState) = 0;
  56.  
  57. };
  58.  
  59. /* Use this macro when declaring classes that implement this interface. */
  60. #define NS_DECL_NSIXTFELEMENTWRAPPER \
  61.   NS_IMETHOD GetElementNode(nsIDOMElement * *aElementNode); \
  62.   NS_IMETHOD GetDocumentFrameElement(nsIDOMElement * *aDocumentFrameElement); \
  63.   NS_IMETHOD GetNotificationMask(PRUint32 *aNotificationMask); \
  64.   NS_IMETHOD SetNotificationMask(PRUint32 aNotificationMask); \
  65.   NS_IMETHOD SetIntrinsicState(PRInt32 newState); 
  66.  
  67. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  68. #define NS_FORWARD_NSIXTFELEMENTWRAPPER(_to) \
  69.   NS_IMETHOD GetElementNode(nsIDOMElement * *aElementNode) { return _to GetElementNode(aElementNode); } \
  70.   NS_IMETHOD GetDocumentFrameElement(nsIDOMElement * *aDocumentFrameElement) { return _to GetDocumentFrameElement(aDocumentFrameElement); } \
  71.   NS_IMETHOD GetNotificationMask(PRUint32 *aNotificationMask) { return _to GetNotificationMask(aNotificationMask); } \
  72.   NS_IMETHOD SetNotificationMask(PRUint32 aNotificationMask) { return _to SetNotificationMask(aNotificationMask); } \
  73.   NS_IMETHOD SetIntrinsicState(PRInt32 newState) { return _to SetIntrinsicState(newState); } 
  74.  
  75. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  76. #define NS_FORWARD_SAFE_NSIXTFELEMENTWRAPPER(_to) \
  77.   NS_IMETHOD GetElementNode(nsIDOMElement * *aElementNode) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElementNode(aElementNode); } \
  78.   NS_IMETHOD GetDocumentFrameElement(nsIDOMElement * *aDocumentFrameElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentFrameElement(aDocumentFrameElement); } \
  79.   NS_IMETHOD GetNotificationMask(PRUint32 *aNotificationMask) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotificationMask(aNotificationMask); } \
  80.   NS_IMETHOD SetNotificationMask(PRUint32 aNotificationMask) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNotificationMask(aNotificationMask); } \
  81.   NS_IMETHOD SetIntrinsicState(PRInt32 newState) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetIntrinsicState(newState); } 
  82.  
  83. #if 0
  84. /* Use the code below as a template for the implementation class for this interface. */
  85.  
  86. /* Header file */
  87. class nsXTFElementWrapper : public nsIXTFElementWrapper
  88. {
  89. public:
  90.   NS_DECL_ISUPPORTS
  91.   NS_DECL_NSIXTFELEMENTWRAPPER
  92.  
  93.   nsXTFElementWrapper();
  94.  
  95. private:
  96.   ~nsXTFElementWrapper();
  97.  
  98. protected:
  99.   /* additional members */
  100. };
  101.  
  102. /* Implementation file */
  103. NS_IMPL_ISUPPORTS1(nsXTFElementWrapper, nsIXTFElementWrapper)
  104.  
  105. nsXTFElementWrapper::nsXTFElementWrapper()
  106. {
  107.   /* member initializers and constructor code */
  108. }
  109.  
  110. nsXTFElementWrapper::~nsXTFElementWrapper()
  111. {
  112.   /* destructor code */
  113. }
  114.  
  115. /* readonly attribute nsIDOMElement elementNode; */
  116. NS_IMETHODIMP nsXTFElementWrapper::GetElementNode(nsIDOMElement * *aElementNode)
  117. {
  118.     return NS_ERROR_NOT_IMPLEMENTED;
  119. }
  120.  
  121. /* readonly attribute nsIDOMElement documentFrameElement; */
  122. NS_IMETHODIMP nsXTFElementWrapper::GetDocumentFrameElement(nsIDOMElement * *aDocumentFrameElement)
  123. {
  124.     return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126.  
  127. /* attribute unsigned long notificationMask; */
  128. NS_IMETHODIMP nsXTFElementWrapper::GetNotificationMask(PRUint32 *aNotificationMask)
  129. {
  130.     return NS_ERROR_NOT_IMPLEMENTED;
  131. }
  132. NS_IMETHODIMP nsXTFElementWrapper::SetNotificationMask(PRUint32 aNotificationMask)
  133. {
  134.     return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136.  
  137. /* void setIntrinsicState (in long newState); */
  138. NS_IMETHODIMP nsXTFElementWrapper::SetIntrinsicState(PRInt32 newState)
  139. {
  140.     return NS_ERROR_NOT_IMPLEMENTED;
  141. }
  142.  
  143. /* End of implementation class template. */
  144. #endif
  145.  
  146.  
  147. #endif /* __gen_nsIXTFElementWrapper_h__ */
  148.